package cn.java75.printer;

/**
 * @author oldliu
 * @since 1.0
 */
public class Printer {
    private String brand;
    private int money;

    private Ink ink;
    private TextPaper paper;
    public Printer(){

    }

    public Printer(String brand, int money) {
        this.brand = brand;
        this.money = money;
    }

    public void print(String content){
        System.out.println("这个一台价值"+this.money+"元的"+brand+"打印机！");
        System.out.println("用"+ink.getColor()+"来打印：");
        paper.print(content);
    }
    public void setBrand(String brand) {
        this.brand = brand;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public void setInk(Ink ink) {
        this.ink = ink;
    }

    public void setPaper(TextPaper paper) {
        this.paper = paper;
    }
}
